home *** CD-ROM | disk | FTP | other *** search
/ Aminet 4 / Aminet 4 - November 1994.iso / aminet / dev / gcc / gcc260_base.lha / gnu / os-include / inline / alib.h next >
Encoding:
C/C++ Source or Header  |  1994-05-17  |  471 b   |  25 lines

  1. #ifndef _INLINE_ALIB_H
  2. #define _INLINE_ALIB_H
  3.  
  4. #include <exec/io.h>
  5.  
  6. #include <sys/cdefs.h>
  7. #include <inline/stubs.h>
  8.  
  9. __BEGIN_DECLS
  10.  
  11. static __inline void
  12. BeginIO (struct IORequest *iorequest)
  13. {
  14.   register struct IORequest *a1 asm("a1")=iorequest;
  15.   register struct Device    *a6 asm("a6")=iorequest->io_Device;
  16.   __asm __volatile ("jsr a6@(-0x1e)"
  17.   : /* no output */
  18.   : "r" (a6), "r" (a1)
  19.   : "a0","a1","d0","d1","memory");
  20. }
  21.  
  22. __END_DECLS
  23.  
  24. #endif /* _INLINE_ALIB_H */
  25.